package test;

import com.taobao.api.DefaultTaobaoClient;
import com.taobao.api.FileItem;
import com.taobao.api.TaobaoClient;
import com.taobao.api.request.ItemAddRequest;
import com.taobao.api.request.ItemcatsGetRequest;
import com.taobao.api.request.ItempropsGetRequest;
import com.taobao.api.request.ItemsGetRequest;
import com.taobao.api.request.ItemsOnsaleGetRequest;
import com.taobao.api.request.ProductsGetRequest;
import com.taobao.api.response.ItemAddResponse;
import com.taobao.api.response.ItemcatsGetResponse;
import com.taobao.api.response.ItempropsGetResponse;
import com.taobao.api.response.ItemsGetResponse;
import com.taobao.api.response.ItemsOnsaleGetResponse;
import com.taobao.api.response.ProductsGetResponse;

public class A1 {

	/**
	 * @param argv
	 * @throws Exception
	 */
	public static void main(String[] argv) throws Exception
	{
/*		//http://shop58623000.taobao.com/
		TaobaoClient client=new DefaultTaobaoClient("http://gw.api.taobao.com/router/rest", "12232777", "a6ab6a8e090d9019eba130342d995ea7");
		ItemcatsGetRequest req=new ItemcatsGetRequest();
		req.setFields("cid,parent_cid,name,is_parent");
		try {
			ItemcatsGetResponse response = client.execute(req);
			System.out.println(response.getBody());
		} catch (ApiException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}*/
		
	
/*		TaobaoClient client=new DefaultTaobaoClient("http://gw.api.taobao.com/router/rest", "12232777", "sandboxe090d9019eba130342d995ea7");
		UserGetRequest req=new UserGetRequest();
		req.setFields("user_id,uid,nick,sex,buyer_credit,seller_credit,location,created,last_visit,birthday,type,status,alipay_no,alipay_account,alipay_account,email,consumer_protection,alipay_bind");
		req.setNick("test");
		UserGetResponse response = client.execute(req );
		System.out.println("result:"+response.getBody());*/
   //	 System.out.println("nick:"+response.getUser().getNick());
		
		//沙箱运行
		String url = "http://gw.api.tbsandbox.com/router/rest";
		String appkey = "12277545";//12277545 //12232777
		String secret = "sandbox4b9089895943bd89cad10154e";//"sandboxe090d9019eba130342d995ea7";
		String session="";
		TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);//实例化TopClient类
    	
		/*
		UserGetRequest req = new UserGetRequest();//实例化具体API对应的Request类
    	 req.setFields("nick,sex,buyer_credit,seller_credit ,created,last_visit");
    	 req.setNick("alipublic23");
    	 UserGetResponse response;
    	 try {
        	 response = client.execute(req); //执行API请求并打印结果
        	 System.out.println("result:"+response.getBody());
        	 System.out.println("nick:"+response.getUser().getNick());
    	 } catch (ApiException e) {
    		e.printStackTrace();
    	 }
    	 
    	 req.setFields("user_id,nick,sex,buyer_credit,seller_credit,location,created,last_visit");
    	// UsersGetResponse response = client.execute(req);
    	 
    	 try {
        	 response = client.execute(req); //执行API请求并打印结果
        	 System.out.println("result:"+response.getBody());
        	 System.out.println("nick:"+response.getUser().getNick());
    	 } catch (ApiException e) {
    		e.printStackTrace();
    	 }*/
    	 
    	 //产品 某个productid号的id列出来 start
    	/* ProductGetRequest req_2=new ProductGetRequest();
    	 req_2.setFields("product_id,cid,cat_name,props,props_str,name,binds,binds_str,sale_props,sale_props_str,price,desc,pic_url,created,modified,product_img.id,product_img.url,product_img.position,product_prop_img.id,product_prop_img.props,product_prop_img.url,product_prop_img.position");
//    	 req_2.setCid(1l);
    	// for(long i=0;i<1895946l;i++)
    	 {
    	 req_2.setProductId(1895946l);
    	 ProductGetResponse response_2 = client.execute(req_2);
    	 response_2 = client.execute(req_2); //执行API请求并打印结果
    	 System.out.println("result:"+response_2.getBody());
    	 
    	 
    	 }*/
    	 //产品 end
    	 //列出某用户的产品
       	 ProductsGetRequest req2=new ProductsGetRequest();
    	 req2.setFields("product_id,cat_name,sale_props_str");
//    	 req2.setFields("product_id,cid,cat_name,props,props_str,name,binds,binds_str,sale_props,sale_props_str,price,desc,pic_url,created,modified,product_img.id,product_img.url,product_img.position,product_prop_img.id,product_prop_img.props,product_prop_img.url,product_prop_img.position");
    	 req2.setNick("liuxiaozheng012");
    	 req2.setPageSize(20l);
//    	 req2
    	 ProductsGetResponse response2 = client.execute(req2,session);
    	 System.out.println("result:"+response2.getBody());
    	

    	 //end 
    	 
    	 
    	 
    	
    	 ItemsGetRequest req7=new ItemsGetRequest();
    	 req7.setFields("iid,title,nick");
    	 //req7.setQ("N97");
    	 req7.setNicks("liuxiaozheng012");
  /*  	 req7.setCid(1512L);
    	 req7.setProps("20000:33564;21514:38489");
    	 req7.setProductId(123456789L);
    	 req7.setPageNo(10L);
    	 req7.setOrderBy("price:asc");
    	 req7.setWwStatus(true);
    	 req7.setPostFree(true);
    	 req7.setLocationState("浙江");
    	 req7.setLocationCity("杭州");
    	 req7.setIs3D(true);
    	 req7.setStartScore(15L);
    	 req7.setEndScore(25L);
    	 req7.setStartVolume(30L);
    	 req7.setEndVolume(100L);
    	 req7.setOneStation(true);
    	 req7.setIsCod(true);
    	 req7.setIsMall(true);
    	 req7.setIsPrepay(true);
    	 req7.setGenuineSecurity(true);
    	 req7.setStuffStatus("new");
    	 req7.setStartPrice(500L);
    	 req7.setEndPrice(500L);
    	 req7.setPageSize(100L);
    	 req7.setPromotedService("4");*/
    	 ItemsGetResponse response7 = client.execute(req7);
    	 System.out.println("result:"+response7.getBody());
    	 System.out.println("result:"+response7.getItems());
    	 

    	 //这个是搜索引擎的接口，查询商品是有15分钟左右的延时的，建议使用taobao.items.onsale.get或者taobao.item.get查询
//    	 TaobaoClient client=new DefaultTaobaoClient(url, appkey, secret);
    	 ItemsOnsaleGetRequest req14=new ItemsOnsaleGetRequest();
    	 req14.setFields("approve_status,num_iid,title,nick,type,cid,pic_url,num,props,valid_thru,list_time,price,has_discount,has_invoice,has_warranty,has_showcase,modified,delist_time,postage_id,seller_cids,outer_id");
//    	/ req14.setQ("hahah999");
    	// req14.setCid(110209L);
    	 ItemsOnsaleGetResponse response = client.execute(req14 );
    	 System.out.println("onsale items="+response.getBody());
    	 //
    	
/*    	 ItemcatsGetRequest req3=new ItemcatsGetRequest();
    	 req3.setFields("cid,parent_cid,name,is_parent");
    	 req3.setParentCid(11L);
    	 ItemcatsGetResponse response3 = client.execute(req3);
    	 System.out.println("result:"+response3.getBody());*/

    	 
    	 
    	
    	 /*ProductAddRequest req4=new ProductAddRequest();
    	 
    	 req4.setCid(50008165l);  // 类目ID
    	 req4.setOuterId("200612"); //商家编码
    	 req4.setProps("20000:30812;1632501:31578;21861:3683581"); //关键属性
    	 req4.setBinds("1637400:4606395;21862:31578"); //非关键属性
    	 req4.setCustomerProps("21861:自定义属性值");  //自定义属性
    	 req4.setSaleProps("1627207:28324");   //销售属性
    	 req4.setName("snake山寨E71"); 	//产品名称 
    	 req4.setImage(new FileItem("D://temp/2.PNG")); //产品图片
    	 req4.setPrice("100");  //产品价钱
    	 
    	// req4.setNum("10");    //产品数量
    	 req4.setDesc("测试添加产品"); //产品描述 
*/    	 
    /*	 ProductAddResponse response = client.execute(req4,session);
    	 System.out.println(response.getBody()); //输出响应的信息
    	 
    	// ProductAddResponse response = client.execute(req4 , sessionKey);
    	 
    	// ?TaobaoClient client=new DefaultTaobaoClient(url, appkey, secret);
    	 ProductAddRequest req=new ProductAddRequest();
    	 req.setCid(5300012L);
    	 req.setOuterId("96330012");
//    	 req.setProps("pid:vid;pid:vid");
//    	 req.setBinds("pid:vid;pid:vid");
//    	 req.setSaleProps("pid:vid;pid:vid");
    	 req.setCustomerProps("20000:优衣库:型号:001;1632501:1234");
    	 req.setPrice("200.07");
    	 FileItem fItem = new FileItem(new File("D://temp/2.PNG"));
    	 req.setImage(fItem);
    	 req.setName("笔记本");
    	 req.setDesc("这是产品描述");
    	 req.setMajor(true);
    	 req.setNativeUnkeyprops("native_unkeyprops");
    	 Date dateTime = SimpleDateFormat.getDateTimeInstance().parse("2000-01-01 00:00:00");
    	 req.setMarketTime(dateTime);
    	 req.setPropertyAlias("1627207:3232483:深深绿色");
    	 ProductAddResponse response3 = client.execute(req , session);
    	 System.out.println(response.getBody()); //输出响应的信息
    	 
    	 */
    	 //添加商品
//    	 TaobaoClient client=new DefaultTaobaoClient(url, appkey, secret);
   	 ItemAddRequest req8=new ItemAddRequest();
    	 req8.setNum(2L);
    	 req8.setPrice("111");
    	 req8.setType("fixed");
    	 req8.setStuffStatus("new");
    	 req8.setTitle("hahah999");
    	 
    	// req8.setImage(new FileItem("http://img04.tbsandbox.com/bao/uploaded/i4/T1updXXe..4t1e17oY_030240.jpg"));
    	 req8.setImage(new FileItem("D:\\tempt\\gwt-logo.png"));
    	 req8.setDesc("<a>asjfdljasf</a><b>dd</b>");
    	 req8.setLocationState("浙江");
    	 req8.setLocationCity("杭州");
    	 req8.setCid(110209L);
    	 req8.setProps("20000:11656;1748306:6759687;20879:32557;20638:21543;20849:32142;3782067:38404325;4077444:41723096;30681:32998;");
    	 ItemAddResponse response8 = client.execute(req8 , session);
    	 
    	 System.out.println(response8.getBody()); //输出响应的信息
    	 
    	 
/*       	 //删除商品
//    	 TaobaoClient client=new DefaultTaobaoClient(url, appkey, secret);
   
    	 ItemDeleteRequest req9=new ItemDeleteRequest();
    	 req9.setNumIid(6000608759l);
    	 ItemDeleteResponse response9 = client.execute(req9 , session);
    	 System.out.println(response9.getBody()); //输出响应的信息
    	 
    	 */
    	 
    	 //取得商品类的所有子类，传入父的parent_cid
//    	 TaobaoClient client=new DefaultTaobaoClient(url, appkey, secret);
    	 ItemcatsGetRequest req10=new ItemcatsGetRequest();
    	 req10.setFields("cid,parent_cid,name,is_parent");
    	 req10.setParentCid(50018909L);
    	 ItemcatsGetResponse response10 = client.execute(req10);
    	 System.out.println(response10.getBody()); //输出响应的信息
    	    
    	 
    	 //一 。获得产品的属性，如型号pid=20000 开始
    	// TaobaoClient client=new DefaultTaobaoClient(url, appkey, secret);
    	 ItempropsGetRequest req11=new ItempropsGetRequest();
    	 req11.setFields("parent_pid,pid,parent_vid,name,prop_values");
    	 req11.setCid(110219L);
    	 ItempropsGetResponse response11 = client.execute(req11);
    	 System.out.println(response11.getBody()); //输出响应的信息
    	 //{"itemprops_get_response":{"item_props":{"item_prop":[{"name":"品牌","parent_pid":0,"parent_vid":0,"pid":20000,"prop_values":{"prop_value":[{"name":"ACTTO","vid":8940526},{"name":"Belkin/贝尔金","vid":21993},{"is_parent":true,"name":"Kawau/川宇","vid":41265},{"is_parent":true,"name":"Kensington/肯辛通","vid":4534862},{"is_parent":true,"name":"Pisen/品胜","vid":42886},{"is_parent":true,"name":"SSK/飚王","vid":30811},{"name":"Sony/索尼","vid":10752},{"is_parent":true,"name":"Targus/泰格斯","vid":95999},{"name":"Z-tek/力特","vid":4501572},{"name":"ermic易麦","vid":4540138},{"is_parent":true,"name":"七河","vid":44338750},{"is_parent":true,"name":"凡格","vid":41418059},{"is_parent":true,"name":"博奇","vid":4538123},{"is_parent":true,"name":"帝特","vid":3626511},{"is_parent":true,"name":"新乐洲","vid":22219870},{"is_parent":true,"name":"智派","vid":39033078},{"is_parent":true,"name":"清华同方","vid":21666},{"name":"盛世长缨","vid":30753265},{"is_parent":true,"name":"群加","vid":4540802},{"is_parent":true,"name":"酷玛特","vid":45904097},{"is_parent":true,"name":"金麦克","vid":23289931},{"name":"其他品牌","vid":81443},{"is_parent":true,"name":"Ecola/宜客莱","vid":4535418}]}},{"name":"接口性质","parent_pid":0,"parent_vid":0,"pid":31838,"prop_values":{"prop_value":[{"name":"USB扩展HUB","vid":106830},{"name":"USB转IDE","vid":106831},{"name":"USB转PCMCIA","vid":106832},{"name":"USB转SATA","vid":106833},{"name":"USB转串口","vid":106834},{"name":"USB转并口","vid":106835},{"name":"USB转PS/2","vid":106836},{"name":"USB转PCI插槽","vid":106837},{"name":"其它接口","vid":84637}]}},{"name":"是否外接电源","parent_pid":0,"parent_vid":0,"pid":31837,"prop_values":{"prop_value":[{"name":"有外接电源","vid":106828},{"name":"无外接电源","vid":106829}]}},{"name":"货号","parent_pid":0,"parent_vid":0,"pid":1632501},{"name":"买的多，价更低！","parent_pid":0,"parent_vid":0,"pid":2316740,"prop_values":{"prop_value":[{"name":"1件","vid":3525115},{"name":"5件","vid":3352164},{"name":"10件","vid":4444205},{"name":"20件","vid":11204263},{"name":"更多","vid":121650}]}}]}}}
    	 req11.setParentPid(20000L);
    	 
    	 ItempropsGetResponse response12 = client.execute(req11);
    	 System.out.println(response12.getBody()); //输出响应的信息
    	//{"itemprops_get_response":{"item_props":{"item_prop":[{"name":" 型号","parent_pid":20000,"parent_vid":41265,"pid":5701487,"prop_values":{"prop_value":[{"name":"H202","vid":3903000},{"name":"RH201","vid":7075850},{"name":"H205G","vid":6737334}]}},{"name":" 型号","parent_pid":20000,"parent_vid":4534862,"pid":5722879,"prop_values":{"prop_value":[{"name":"K33216","vid":6259945},{"name":"k33415","vid":10921730}]}},{"name":" 型号","parent_pid":20000,"parent_vid":42886,"pid":5701498,"prop_values":{"prop_value":[{"name":"TS-E015","vid":49200453},{"name":"TS-E017","vid":75964307},{"name":"分线式HUB","vid":55906699},{"name":"TS-E012","vid":38889313}]}},{"name":" 型号","parent_pid":20000,"parent_vid":30811,"pid":5700684,"prop_values":{"prop_value":[{"name":"SHU017","vid":23085478},{"name":"SHU019","vid":23096797},{"name":"shu005","vid":6999073},{"name":"shu008","vid":7000066},{"name":"shu010","vid":7000590},{"name":"shu011","vid":7000983},{"name":"shu012","vid":13783962},{"name":"shu013","vid":14183736},{"name":"shu015","vid":14184142},{"name":"shu016","vid":14387841},{"name":"shu006","vid":6999587}]}},{"name":" 型号","parent_pid":20000,"parent_vid":95999,"pid":5734920,"prop_values":{"prop_value":[{"name":"ACH54AP","vid":28656909},{"name":"ACH105AP","vid":24139343},{"name":"ACH111AP","vid":44606490},{"name":"ACH55AP","vid":46179238},{"name":"ACH8102AP-20","vid":46182879},{"name":"ACC93AP","vid":21307778}]}},{"name":" 型号","parent_pid":20000,"parent_vid":44338750,"pid":5710449,"prop_values":{"prop_value":[{"name":"人形HUB","vid":11509733},{"name":"魔镜HUB","vid":42765059},{"name":"玫瑰花HUB","vid":24303892},{"name":"五色花HUB","vid":18848915},{"name":"轮胎HUB","vid":13815147},{"name":"小鱼HUB","vid":15239686},{"name":"笑脸HUB","vid":12079115},{"name":"甲虫HUB","vid":19108925},{"name":"梅花HUB","vid":11027869},{"name":"超薄HUB","vid":13814672},{"name":"线形HUB","vid":13109040},{"name":"小精灵HUB","vid":20421198},{"name":"鱼骨HUB","vid":21701131},{"name":"排插HUB","vid":11834432},{"name":"新梅花HUB","vid":24718661},{"name":"便签小人HUB","vid":79989196},{"name":"线形3口HUB","vid":79989197},{"name":"老鼠HUB","vid":9178501},{"name":"章鱼HUB","vid":12343331},{"name":"瓢虫HUB","vid":12555622},{"name":"紫荆花HUB","vid":13358700},{"name":"莲花HUB","vid":11832679},{"name":"爱心HUB","vid":24305081},{"name":"HUB+MINI 5P","vid":79989198},{"name":"板凳HUB","vid":37010397},{"name":"狗骨头HUB","vid":54874852},{"name":"牛HUB","vid":14888448},{"name":"手表HUB","vid":16000294},{"name":"蝴蝶HUB","vid":39871371},{"name":"红绿灯HUB","vid":7107675},{"name":"四边到HUB","vid":79989200},{"name":"十字架HUB","vid":41449185},{"name":"贝壳HUB","vid":26733750},{"name":"飞碟3+1HUB","vid":41260783},{"name":"滴胶三角形HUB","vid":79989201},{"name":"UFO 飞碟HUB","vid":79989202},{"name":"hub+PS/2","vid":25738883},{"name":"化妆盒HUB","vid":34014909},{"name":"2口向上","vid":67708609},{"name":"海螺HUB","vid":62182621},{"name":"青蛙HUB","vid":46810869},{"name":"三角形HUB","vid":41258246},{"name":"刀形HUB","vid":41257368},{"name":"发光牛HUB","vid":45361998},{"name":"积木HUB","vid":27253912},{"name":"4口彩灯HUB","vid":79989203},{"name":"背光HUB","vid":15765632},{"name":"花朵HUB","vid":11317760},{"name":"化学分子HUB","vid":41452692},{"name":"烟斗HUB","vid":8646238},{"name":"五色彩球","vid":32449182},{"name":"地球HUB","vid":60107399},{"name":"圆形发光HUB","vid":79989206},{"name":"长条魔方HUB","vid":20426484},{"name":"折叠HUB","vid":9077869},{"name":"圆柱HUB","vid":11379318},{"name":"小钢网HUB","vid":49476756},{"name":"闹钟HUB","vid":16347038},{"name":"手机座HUB","vid":28403413},{"name":"四色魔方HUB","vid":20416124},{"name":"吉祥物HUB","vid":41788767},{"name":"圆形带表HUB","vid":71722032},{"name":"乌龟带HUB","vid":79989208},{"name":"发光猴子HUB","vid":41455688},{"name":"汽车HUB","vid":16368440},{"name":"笔筒HUB","vid":14397649},{"name":"飞机HUB","vid":28437315},{"name":"四方带表HUB","vid":71707182},{"name":"八爪鱼4口HUB","vid":12360372},{"name":"迷你HUB","vid":17162617},{"name":"橄榄HUB","vid":44598137},{"name":"苹果HUB","vid":24439315},{"name":"圆形四口向上HUB","vid":79989214},{"name":"鼠标形HUB","vid":79989216},{"name":"一口向上","vid":79989217},{"name":"亚克力HUB","vid":79989218},{"name":"阶梯形HUB","vid":79989224},{"name":"枫叶hub","vid":23159460},{"name":"排插HUB带开关","vid":79989226},{"name":"直尺HUB","vid":79989227},{"name":"可爱花滴胶HUB","vid":79989228},{"name":"大钢网hub","vid":45294891},{"name":"长条苹果HUB","vid":79989229},{"name":"伸缩式口红HUB","vid":79989230},{"name":"镜面HUB","vid":26734872},{"name":"桌面夹HUB","vid":71712329},{"name":"开关HUB","vid":36551198},{"name":"立式7口HUB","vid":26735211},{"name":"大鱼7口HUB","vid":41456124},{"name":"平放7口HUB","vid":41455952},{"name":"线形7口HUB","vid":20399673},{"name":"排插式10口HUB","vid":68596306}]}},{"name":" 型号","parent_pid":20000,"parent_vid":41418059,"pid":5724172,"prop_values":{"prop_value":[{"name":"小人形","vid":11089816},{"name":"梅花形","vid":8397827},{"name":"透明梅花形","vid":85271141},{"name":"鱼形","vid":3937221}]}},{"name":" 型号","parent_pid":20000,"parent_vid":4538123,"pid":5700703,"prop_values":{"prop_value":[{"name":"小精灵","vid":101446},{"name":"可爱多彩鱼","vid":72019423},{"name":"小人型","vid":12506893}]}},{"name":" 型号","parent_pid":20000,"parent_vid":3626511,"pid":5734905,"prop_values":{"prop_value":[{"name":"DT-1017","vid":5421586},{"name":"DT-3006","vid":8690771},{"name":"DT-3007","vid":8821833},{"name":"DT-3009A","vid":8810488},{"name":"DT-3011","vid":13573624},{"name":"DT-7001","vid":4018652},{"name":"DT-3004P","vid":8687414},{"name":"DT-4080","vid":78306745},{"name":"DT-3010","vid":8697134},{"name":"DT-3012","vid":21771940},{"name":"DT-4012","vid":18788165},{"name":"DT-3082","vid":65448770},{"name":"DT-3045","vid":41873061},{"name":"DT-4011","vid":23293462},{"name":"DT-3020","vid":64092736},{"name":"DT-3080","vid":69293891},{"name":"DT-3046","vid":41875126},{"name":"DT-3068A","vid":87811621},{"name":"DT-7352","vid":87811623},{"name":"DT-7354","vid":87811625},{"name":"DT-7358","vid":87811626},{"name":"DT-7003","vid":60984581},{"name":"DT-4003","vid":4392688},{"name":"DT-1035","vid":4888798}]}},{"name":" 型号","parent_pid":20000,"parent_vid":22219870,"pid":5722856,"prop_values":{"prop_value":[{"name":"NSY-H001","vid":27073178},{"name":"NSY-227","vid":67744003},{"name":"NSY-H002","vid":27073307},{"name":"NSY-H013","vid":27074292},{"name":"NSY-H015","vid":27074386},{"name":"NSY-H003","vid":27073468},{"name":"NSY-H006","vid":27074029},{"name":"十字HUB","vid":62289901},{"name":"NSY-H020","vid":67744007},{"name":"NSY-H007","vid":27074053},{"name":"充电HUB","vid":67744009},{"name":"NSY-H008","vid":27074092}]}},{"name":" 型号","parent_pid":20000,"parent_vid":39033078,"pid":5720937,"prop_values":{"prop_value":[{"name":"ZPHUB-1","vid":67025092},{"name":"ZPHUB-2","vid":67025674},{"name":"ZPHUB-3","vid":67025677},{"name":"ZPHUB-4","vid":67025679},{"name":"ZPHUB-5","vid":67025680},{"name":"ZPHUB-6","vid":67025681},{"name":"ZPHUB-7","vid":67025682},{"name":"ZPHUB-8","vid":67025683},{"name":"ZPHUB-9","vid":67025684},{"name":"ZPHUB-10","vid":67025685},{"name":"ZPHUB-11","vid":67025686},{"name":"ZPHUB-12","vid":67025687}]}},{"name":" 型号","parent_pid":20000,"parent_vid":21666,"pid":5700662,"prop_values":{"prop_value":[{"name":"TF504","vid":26649956},{"name":"TF503","vid":33209230},{"name":"TF501","vid":13679809}]}},{"name":" 型号","parent_pid":20000,"parent_vid":4540802,"pid":5724520,"prop_values":{"prop_value":[{"name":"HUB153","vid":80990888},{"name":"HUB1161","vid":80990889}]}},{"name":" 型号","parent_pid":20000,"parent_vid":45904097,"pid":5724534,"prop_values":{"prop_value":[{"name":"CMT-H001","vid":63467225},{"name":"CMT-H002","vid":63999161},{"name":"CMT-H003","vid":63999197},{"name":"CMT-H006","vid":63999239},{"name":"CMT-H012","vid":63999295},{"name":"CMT-H013","vid":63999343},{"name":"CMT-H014","vid":63547103},{"name":"CMT-H005","vid":63999425},{"name":"CMT-H015","vid":63999573},{"name":"CMT-H016","vid":63999607},{"name":"CMT-H017","vid":63999642},{"name":"CMT-H018","vid":63999689},{"name":"CMT-H019","vid":63547368},{"name":"CMT-H020","vid":63547222}]}},{"name":" 型号","parent_pid":20000,"parent_vid":23289931,"pid":5724251,"prop_values":{"prop_value":[{"name":"KM HUB","vid":81814325}]}},{"name":"型号","parent_pid":20000,"parent_vid":4535418,"pid":1627368,"prop_values":{"prop_value":[{"name":"USB-HUB104","vid":10728812},{"name":"USB-HUB106","vid":10728841},{"name":"其他型号","vid":40779}]}}]}}}
    	
    	 req11.setPid(5722879L);
    	 ItempropsGetResponse response13 = client.execute(req11);
    	 System.out.println(response13.getBody()); //输出响应的信息
    	 //{"itemprops_get_response":{"item_props":{"item_prop":[{"name":" 型号","parent_pid":20000,"parent_vid":4534862,"pid":5722879,"prop_values":{"prop_value":[{"name":"K33216","vid":6259945},{"name":"k33415","vid":10921730}]}}]}}}
	
    	 //妈的 获得至少3此数据才能得到产品的属性，超级麻烦，有没有简单办法啊
    	 //end
   
	}
}
